package com.demo.service;


import java.util.List;

import com.demo.entity.po.CounselorInfo;

import com.demo.entity.query.CounselorInfoQuery;

import com.demo.entity.vo.PaginationResultVO;

/**
 * @Description:咨询师表service
 * @Date:2025-03-04
 * @author：author
*/
public interface CounselorInfoService{

	/**
	 * 根据条件查询列表
	 */
	List<CounselorInfo> findListByParam(CounselorInfoQuery query);

	/**
	 * 根据条件查询数量
	 */
	Integer findCountByParam(CounselorInfoQuery query);

	/**
	 * 分页查询
	 */
	PaginationResultVO<CounselorInfo> findListByPage(CounselorInfoQuery  query);

	/**
	 * 新增
	 */
	Integer  add(CounselorInfo bean);

	/**
	 * 批量新增
	 */
	Integer  addBatch(List<CounselorInfo> listBean);

	/**
	 * 批量新增或者修改
	 */
	Integer  addOrUpdateBatch(List<CounselorInfo> listBean);


	/**
	 * 根据CounselorId查询
	 */
	CounselorInfo getCounselorInfoByCounselorId(Long counselorId);

	/**
	 * 根据CounselorId更新
	 */
	Integer updateCounselorInfoByCounselorId(CounselorInfo bean, Long counselorId);

	/**
	 * 根据CounselorId删除
	 */
	Integer deleteCounselorInfoByCounselorId(Long counselorId);


	/**
	 * 根据UserId查询
	 */
	CounselorInfo getCounselorInfoByUserId(Long userId);

	/**
	 * 根据UserId更新
	 */
	Integer updateCounselorInfoByUserId(CounselorInfo bean, Long userId);

	/**
	 * 根据UserId删除
	 */
	Integer deleteCounselorInfoByUserId(Long userId);


	void saveInfo(CounselorInfo counselorInfo);


	void updateStatus(Long counselorId, Integer status);
}